package com.pubinfo.passbook.api.controller.auth;

import com.pubinfo.passbook.common.model.dto.system.TaskLogListParam;
import com.pubinfo.passbook.common.model.vo.base.JsonResult;
import com.pubinfo.passbook.common.model.vo.base.MyPage;
import com.pubinfo.passbook.common.model.vo.log.SystemTaskLogListVo;
import com.pubinfo.passbook.common.service.master.TSystemTaskLogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "task/log")
@Api(tags = "任务日志管理")
@Slf4j
public class TaskLogController {
  @Autowired
  TSystemTaskLogService taskLogService;
  
  @PostMapping("list")
  @ApiOperation(value = "查询列表数据")
  public JsonResult<MyPage<SystemTaskLogListVo>> listInterfaceClassify(@RequestBody TaskLogListParam paramObj) {
    return JsonResult.success(new MyPage(taskLogService.listTaskLog(paramObj)));
  }
}
